<div class="widget_box">
    <div class="block">    
        <div class="block-title"><h2><?php echo Yii::t('site','Welcome')." ". CHtml::encode(Yii::app()->user->name);?></h2></div>    
	<div class="block-content">
	
<?php $userModule = Yii::app()->getModule('user'); ?>

<ul>
<li><?php echo CHtml::link($userModule->t('Profile'),CHtml::normalizeUrl($userModule->profileUrl)); ?></li>
<li><?php echo CHtml::link($userModule->t('Edit'),array('/user/profile/edit')); ?></li>
<li><?php echo CHtml::link($userModule->t('Change password'),array('/user/profile/changepassword')); ?></li>
<li><?php echo CHtml::ajaxLink($userModule->t('Logout'), CHtml::normalizeUrl($userModule->logoutUrl),
                        array(
                            'type'=>'post',
                            'data'=>'YII_CSRF_TOKEN='.Yii::app()->request->csrfToken,
                            'success' => 'function(data) {window.location.reload();}'
                        ),
                        array()
                    );?></li>
</ul>

</div>
    </div>
</div>
